package com.service.Impl;

import com.dao.UserDao;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    UserDao userDao;
    @Autowired
    //构造注入
    public UserServiceImpl(UserDao userDao){
        this.userDao = userDao;
    }
    public void getList() {
            userDao.getList();
    }
}
